import request from "/@/utils/request"

// 查询公用帐号与用户关联。负责人:赵延斌列表
export function listLinkuser(query) {
  return request({
    url: '/system/linkuser/list',
    method: 'get',
    params: query
  })
}

// 查询公用帐号与用户关联。负责人:赵延斌详细
export function getLinkuser(pusername) {
  return request({
    url: '/system/linkuser/' + pusername,
    method: 'get'
  })
}

// 新增公用帐号与用户关联。负责人:赵延斌
export function addLinkuser(data) {
  return request({
    url: '/system/linkuser',
    method: 'post',
    data: data
  })
}

// 修改公用帐号与用户关联。负责人:赵延斌
export function updateLinkuser(data) {
  return request({
    url: '/system/linkuser',
    method: 'put',
    data: data
  })
}

// 删除公用帐号与用户关联。负责人:赵延斌
export function delLinkuser(pusername) {
  return request({
    url: '/system/linkuser/' + pusername,
    method: 'delete'
  })
}
